import com.aop.advice.impl.MyAdviceImpl;
import com.aop.advice.inter.MyAdvice;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
        MyAdviceImpl myAdvice = applicationContext.getBean(MyAdviceImpl.class);
        myAdvice.show();
    }
}
